package com.tuju.jetpackfirstdemo.ui.weather

import androidx.lifecycle.ViewModel
import com.coolweather.coolweatherjetpack.data.model.weather.Weather
import com.tuju.jetpackfirstdemo.data.WeatherRepository

class WeatherViewModel(private val repository: WeatherRepository) : ViewModel() {

    var weather: Weather? = null
    var bingPicUrl: String? = null

    fun getWeather(weatherId: String, key: String) = repository.getWeather(weatherId, key)

    fun getBingPic() = repository.getBingPic()

}